/**
 * MIT License
 *
 * Copyright (c) 2024 小村程序员
 * Email: 397237738@qq.com
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package org.open.cobertura.core.model;

import org.objectweb.asm.Label;

/**
 * 用于重写label标签的状态信息
 * 由于label标签只能访问到hashcode和偏移量，Cobertura在做插桩时，无法准确的知道该条标签或指令需要进行插桩，故我们需要
 * 重新对ASM框架的Label标签进行标识
 */
public class LabelStateful extends Label {

    /**
     * 是否是单一跳转指令
     */
    public boolean isJump=false;
    /**
     * 是否是多目标跳转指令
     */
    public boolean isMultiJump=false;
    /**
     * 是否是结束标签
     */
    public boolean isEnd=false;
    /**
     * 是否有下一个潜在的指令
     */
    public boolean isNext=false;


    /**
     * 方法的开始行
     */
    public boolean methodBeginLine;

    public int lineNumber;

    public InstructionStateful instructionStateful;
}
